package com.victor9ac.tfm.web.model.comment;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class CommentView {
	
	@JsonProperty("author")
	private String commentAuthor;
	@JsonProperty("text")
	private String commentText;
	@JsonProperty("commentDate")
	private String commentDate;
	@JsonProperty("source")
	private String commentOrigin;
	
	public String getCommentAuthor() {
		return commentAuthor;
	}
	public void setCommentAuthor(String commentAuthor) {
		this.commentAuthor = commentAuthor;
	}
	public String getCommentText() {
		return commentText;
	}
	public void setCommentText(String commentText) {
		this.commentText = commentText;
	}
	public String getCommentDate() {
		return commentDate;
	}
	public void setCommentDate(String commentDate) {
		this.commentDate = commentDate;
	}
	public String getCommentOrigin() {
		return commentOrigin;
	}
	public void setCommentOrigin(String commentOrigin) {
		this.commentOrigin = commentOrigin;
	}
	
	public String toString(){
		return "author:"+this.commentAuthor+" - "+"comment:"+this.commentText+ " - "+"date:"+this.commentDate+ "(origin:"+commentOrigin+")";
	}


}
